package com.huangtang.pc.feign;

import com.huangtang.pc.entity.Order;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author sunjf
 * @date 2024/01/12
 */
@FeignClient(value = "${rpc.service.order}")
public interface OrderClient {

    @LoadBalanced
    @GetMapping("/order/order/getById")
    Order getById();
}
